package com.ht.service.impl;

import com.ht.bean.Dep;
import com.ht.bean.Feedback;
import com.ht.bean.Post;
import com.ht.dao.FeedbackDao;
import com.ht.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    private FeedbackDao sd;

    //查询审阅
    @Override
    public Map allcheck(Integer feedbackId) {
        return sd.allcheck(feedbackId);
    }
    //查询部门
    @Override
    public List<Dep> alldep(Integer depid, String depName) {
        return sd.alldep(depid,depName);
    }

    //查询反馈表
    @Override
    public List<Map> alllist(Integer startIndex, Integer pageSize, Feedback fk) {
        return sd.alllist(startIndex, pageSize, fk);
    }
    //查询总页数
    @Override
    public int countfk(Feedback fk) {
        return sd.countfk(fk);
    }

    //新增
    @Override
    public boolean addfk(Feedback feedback) {
        return sd.addfk(feedback);
    }

    //查询职务
    @Override
    public List<Post> postlist() {
        return sd.allpost();
    }

    //审批
    @Override
    public boolean sp(Feedback feedback) {
        return sd.sp(feedback);
    }
    //查id
    @Override
    public List<Feedback> fkid(Integer feedbackId) {
        return sd.fkid(feedbackId);
    }

}
